
rm *.diff

d="../../../"
p="run.sh"
m="minijava"
bin=$d"bin"

cd=$PWD"/"

for f in $(ls *.out)
do
	file=${f::$[$[${#f} -4]]}

	echo "Compilando "$file

	cd $d

	"./"$p < $cd"/../"$file".java"

	cd $cd

	echo "Executando "$file

	"./"$d$m | diff $f - > $file".diff"

done
